Auto merge of #2779 - matklad:propagete-color-config, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 10 Jun 2016 14:23:32 +0000 (07:23 -0700)
committerGitHub <noreply@github.com>
Fri, 10 Jun 2016 14:23:32 +0000 (07:23 -0700)
commit13861b777d4def3b38909577c7bdd1b8b18fbfbe
treedbc5148f8bec272ad473fb0c65f1de1bffc42f23
parent22f9cffcffbc0a6c8085ae9b667fc0af51521fc9
parent76a48a9b075342249d4080326c69f4638b55fe7d
Auto merge of #2779 - matklad:propagete-color-config, r=alexcrichton

Propagate --color option to rustc

closes #2740

Will try to add a test for this soon (and fix failing tests if any, compiling/running tests locally is slow :( ).

I am not sure what is the right place to add `--color` option to the command line. I use [`build_base_args`]. [`process`] also looks like a good candidate, because it is more general, but if we look at the [`CommandType`] we see that only `rustc` command supports `--color`.

[`build_base_args`]: https://github.com/matklad/cargo/blob/1f7504397ce7c40ff708e2d31da164822e88ed37/src/cargo/ops/cargo_rustc/mod.rs#L449
[`process`]: https://github.com/matklad/cargo/blob/1f7504397ce7c40ff708e2d31da164822e88ed37/src/cargo/ops/cargo_rustc/mod.rs#L608
[`CommandType`]: https://github.com/matklad/cargo/blob/1f7504397ce7c40ff708e2d31da164822e88ed37/src/cargo/ops/cargo_rustc/engine.rs#L102